<?php
/**
 * Created by PhpStorm.
 * User: ship
 * Date: 2024/12/25
 * Time: 19:06
 */

namespace ShipSun\LaravelSignature;

use App\Exceptions\ModuleException;

/**
 * Class Exception
 * @package ShipSun\LaravelSignature
 */
class Exception extends ModuleException
{
    protected const INIT_CODE = self::SIGNATURE_INIT_CODE;
    public const CHECK_PARAM_FAIL = 56001;
    public const VERIFY_FAIL = 56002;

    protected function messages()
    {
        return [
            self::CHECK_PARAM_FAIL => ':key参数不能为空',
            self::VERIFY_FAIL => '签名验证失败',
        ];
    }
}